<template>
  <el-dialog
    title="保存"
    :visible.sync="dialogVisible"
    width="30%"
    class="confirm-dialog">
    <div slot="title" class="confirm-dialog__title">
      保存
    </div>
    <div class="confirm-dialog__img">
      <img src="../../../assets/dialog-confirm.png">
    </div>
    <span>是否保存信息？</span>
    <span slot="footer" class="confirm-dialog-footer">
      <div class="web-btn-short__plain" @click="dialogVisible = false">取 消</div>
      <div class="web-btn-short__primary" @click="dialogVisible = false">确 定</div>
    </span>
  </el-dialog>
</template>

<script>
import { Dialog, Button } from 'element-ui'
export default {
  name: 'ConfirmDialog',
  data() {
    return {
      dialogVisible: false
    }
  },
  components: {
    ElDialog: Dialog,
    ElButton: Button
  },
  methods: {
    showDialog () {
      this.dialogVisible = true
    }
  }
}
</script>

<style lang="scss" scoped>
.confirm-dialog {
  &__title {
    height: 80px;
    background: #FAFCFD;
    font-size: 36px;
    line-height: 80px;
    color: #333333;
  }
  &__img {
    width: 269px;
    height: 203px;
    margin: 0 auto;
    margin-bottom: 48px;
  }
  &-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 30px;
    .web-btn-short__plain {
      margin-right: 56px;
    }
  }
}
</style>

<style lang="scss">
.confirm-dialog {
  .el-dialog {
    width: 746px;
    border-radius: 20px;
    overflow: hidden;
  }
  .el-dialog__body {
    font-size: 34px;
    line-height: 48px;
    color: #333333;
  }
  .el-dialog__header {
    padding: 0;
  }
}

</style>